<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:text name="E-HC"/></title>
<link rel="stylesheet" href="images/ehc.css" type="text/css" charset="UTF-8"> 
<link rel="stylesheet" type="text/css" href="ext-3.0.3/resources/css/ext-all.css" charset="UTF-8"/>
<script type="text/javascript" src="ext-3.0.3/adapter/ext/ext-base.js" charset="UTF-8"></script>  
<script type="text/javascript" src="ext-3.0.3/ext-all.js" charset="UTF-8"></script>
    
<script language="javascript" src="ext-3.0.3/pf/patient/form/regist.js" charset="UTF-8"></script> 
<script language="javascript" src="ext-3.0.3/pf/patient/window/login.js" charset="UTF-8"></script>
<script language="javascript" src="ext-3.0.3/pf/validation/validation.js" charset="UTF-8"></script>  
 <link rel="stylesheet" type="text/css" href="ext-3.0.3/pf/shared/shared/examples.css" /> 
    <style type="text/css"> 
    .x-panel-body p {
        margin:10px;
        font-size:12px;
    }
    </style> 
    
 


    
    <style type="text/css">
<!--
.style1 {font-size: 12px}
-->
</style>
</head>

  <body>
  <script type="text/javascript" src="ext-3.0.3/pf/shared/examples.js" charset="UTF-8"></script><!-- EXAMPLES --> 
    
  <div id="loginWindow" class="x-hidden"> 
    <div class="x-window-header">用户登录</div> 
   
</div> 

<div id="registWindow" class="x-hidden"> 
    <div class="x-window-header">用户注册</div> 
   
</div> 

  <TABLE width="1000" 
border="0" cellPadding="0" cellSpacing="0" bgColor="#ffffff">

    <TR>
      <TD width="214" height="78">
      <div align="center">
      <IMG  src="images/logo.jpg" width="186" height="100"  border="0"> 
      </div>
      </TD>
      <TD width="786">
        <div align="center">
          <TABLE height="68" cellSpacing="0" cellPadding="0" width="103%" border="0">

              <TR>

    

              
              <TD width="48%" align="left">
                
                             
                 </TD>

                <TD width="52%" align="right">
                  <TABLE width="363" border="0" align="left" cellPadding="0" cellSpacing="0">

                      <TR>

				<s:if test="#session.user == null ">
                      <TD  width="20%" style="cursor:hand;"><IMG height="32" 
                  src="images/login.jpg" 
                  width="40" id="loginbutton"></TD>
                   <TD  width="2"  
                rowSpan="2" ></TD>
                  <TD  width="20%" style="cursor:hand;"><IMG height="32" 
                  src="images/top-8.gif" 
                  width="50" id="regist"></TD>
                   <TD  width="2"  
                rowSpan="2" ></TD>
				</s:if>
				<s:else>
				<TD width="100%">
				
					
					
				</TD>	
				
				
				</s:else>
                       
                        <TD  width="20%"><IMG height="32" 
                  src="images/top-3.gif" 
                  width="66"></TD>
                        <TD  width="2" 
                rowSpan="2" ></TD>
     

                        <TD width="20%"  style="cursor:hand;"><IMG height="32 "
                  src="images/top-9.gif" 
                  width="66"></TD>


                      </TR>
                      <TR>
                      <s:if test="#session.user == null ">
                      <TD  width="71" height="23"><A 
                  style="FONT-SIZE: 12px; COLOR: #a8a8a8">用户登录</A></TD>
                  <TD  width="71" height="23"><A 
                  style="FONT-SIZE: 12px; COLOR: #a8a8a8">用户注册</A></TD>
                       </s:if>
                       <s:else>
                        <TD   width="100%" height="23">
                         <s:property value="#session.user"/> &nbsp;&nbsp;&nbsp;&nbsp; 欢迎您！
        <a href="logout.action"><img src="images/out.gif" alt="安全退出" width="46" height="20" border="0"></a>
                        </TD>
                       
                       </s:else>
                        <TD  width="71" height="23"><A 
                  style="FONT-SIZE: 12px; COLOR: #a8a8a8" >设为首页</A></TD>
                       
                        <TD  width="71"><A 
                  style="FONT-SIZE: 12px; COLOR: #a8a8a8" 
                 >网上挂号</A></TD>
                      </TR>
                </TABLE></TD>
              </TR>

          </TABLE>
      </div></TD>
    </TR>
</TABLE>




<table width="1000" height="90" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="485">
	
<!--图片渐变切换-->
<SCRIPT type="text/javascript">

	
	var focus_width=1000
	var focus_height=200
	var text_height=0
	var swf_height = focus_height+text_height
	
	var pics='images/title1.jpg|images/title2.jpg|images/title3.jpg'
	var links='HealthCare.jsp|HealthCare.jsp|HealthCare.jsp'
	var texts=''
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/flash01.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
	document.write('<embed src="/E-HC/resource/flash01.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');		
	document.write('</object>');

</SCRIPT>	</td>
  </tr>
</table>
<script>


function attachMenu(objid){
	var tds=objid.getElementsByTagName('td');
	for(var i=0;i<tds.length;i++){
		with(tds[i]){
		if(i%2 == 0)
		{
			onmouseover=function(){
				with(this){
					filters[0].apply();
					style.background='D5F1FF'; //这是鼠标移上去时的背景颜色
					style.border='0px solid #ffffff'; //边框
					style.color='#ffffff'; //文字颜色
					filters[0].play();
				}
			}
			onmouseout=function(){
				with(this){
					filters[0].apply();
					style.background='#66CCFF'; //这是鼠标离开时的背景颜色
					style.border='0px solid #D5F1FF'; //边框
					style.color='#ffffff'; //文字颜色
					filters[0].play();
				}
			}
		}
		}
	}
}
</script>

<!--菜单从这里开始, 注意要把class设置成和css里相同的, 还要为它设一个id-->
<table width="1000" border="0" cellpadding="1" cellspacing="4" bgcolor="#66CCFF" class="menu" id="menu1">
	<tr>
		<td onClick="location.href='index.action'">网站首页</td>
		<td width="1" background="images/menudevid.gif"></td>
		<td onClick="location.href='getPersonalInformationPatient.action'">用户中心</td>
		<td width="1" background="images/menudevid.gif"></td>
		<td bordercolor="#FFFFFF" onClick="location.href='queryTopHospitalPublic.action?size=10'">预约挂号</td>
		<td width="1" background="images/menudevid.gif"></td>
		<td onClick="location.href='queryTopHospitalPublic.action?size=10'">名医荟萃</td>
		<td width="1" background="images/menudevid.gif"></td>
		<td onClick="location.href='HealthCare.action'">医疗保健</td>
		<td width="1" background="images/menudevid.gif"></td>
		<td onClick="location.href='question_list.action'">疾病咨询</td>
		<td width="1" background="images/menudevid.gif"></td>
		<td onClick="location.href='product.action'">保健产品</td>
		<td width="1" background="images/menudevid.gif"></td>
		<td onClick="location.href='FAQ.action'">FAQ</td>
	</tr>
</table>
<script>attachMenu(menu1); //在上面这个table结束的地方执行事件动作的绑定, 这里的这个xmenu0就是那个table的id</script>


  
  
  
  
  </body>

</html>


